package com.imooc.activitiweb.listener;


import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

import java.util.ArrayList;
import java.util.List;

/**
 * 多实例监听
 *
 * @author jzwu
 * @since 2021/3/25 0025
 */
public class MultInstancesStartListener implements ExecutionListener {
    @Override
    public void notify(DelegateExecution execution) {
        List<String> listAssignee = new ArrayList<>();
        listAssignee.add("bajie");
        listAssignee.add("wukong");
        listAssignee.add("salaboy");
        execution.setVariable("assigneeList", listAssignee);
        execution.setVariable("isPass", 0);
    }
}